package com.seven.commons;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author sevenDay
 * @classname ${CLASSNAME}
 * @description: 描述TODO
 * @date 2018/2/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

   /* @NotNull(message = "age不能为空")*/
    @Excel(name="年龄")
    private Integer age;
 @NotNull(message = "id不能为空",groups = T.class)
    /*@NotBlank(message = "姓名不能为空字符串")*/
    @Excel(name="姓名")
    @NotBlank(message = "userName不能为空",groups = S.class)
    private String userName;
    @Excel(name="主键")
    @NotNull(message = "id不能为空",groups = S.class)
    private Integer id;

}
